//
//  CellViewControllerForTwoLabels.m
//  MemoryTasks
//
//  Created by Philippe Bouamriou on 15/05/10.
//  Copyright 2010 Philippe Bouamriou. All rights reserved.
//

#import "CellViewControllerForTwoLabels.h"
#import "CellViewControllerForTwoLabels-IB.h"

// Public methods

@implementation CellViewControllerForTwoLabels

@synthesize _rightLabel, _leftLabel, valueText, labelText, linkedCell;

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
   self._leftLabel.text = labelText;
   self._rightLabel.text = valueText;
   [super viewDidLoad];
}

- (void)didReceiveMemoryWarning {
   // Releases the view if it doesn't have a superview.
   [super didReceiveMemoryWarning];
   
   // Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
   [super viewDidUnload];
   // Release any retained subviews of the main view.
   // e.g. self.myOutlet = nil;
   self._leftLabel = nil;
   self._rightLabel = nil;
}



#pragma mark -
#pragma mark Mutators

- (void)setLabelText:(NSString *)theLabelText {
   if (theLabelText != labelText) {
      labelText = theLabelText;
      self._leftLabel.text = theLabelText;
   }
}

- (void)setValueText:(NSString *)theValueText {
   if (theValueText != valueText) {
      valueText = theValueText;
      self._rightLabel.text = theValueText;
   }
}


@end
